package com.jhgsys.internal.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.base.dto.BaseProjectDto;
import com.jhgsys.internal.base.entity.BaseProject;
import com.jhgsys.internal.common.entity.QueryRequest;

import java.util.List;

/**
 * 项目设置 Service接口
 *
 * @author admin
 * @date 2024-07-29 14:19:15
 */
public interface IBaseProjectService extends IService<BaseProject> {
    /**
     * 查询（分页）
     * @author admin
     * @date 2024-07-29 14:19:15
     * @param request QueryRequest
     * @param baseProject baseProject
     * @return IPage<BaseProject>
     */
    IPage<BaseProjectDto> findBaseProjects(QueryRequest request, BaseProject baseProject);

    /**
     * 查询（所有）
     * @author admin
     * @date 2024-07-29 14:19:15
     * @param baseProject baseProject
     * @return List<BaseProject>
     */
    List<BaseProject> findBaseProjects(BaseProject baseProject);

    /**
    * 根据ID查询
    * @author admin
    * @date 2024-07-29 14:19:15
    * @param id
    * @return BaseProject
    */
    BaseProjectDto findBaseProjectById(String id);

    /**
     * 新增
     * @author admin
     * @date 2024-07-29 14:19:15
     * @param baseProjectDto
     */
    void createBaseProject(BaseProjectDto baseProjectDto);

    /**
     * 修改
     * @author admin
     * @date 2024-07-29 14:19:15
     * @param baseProjectDto
     */
    void updateBaseProject(BaseProjectDto baseProjectDto);

    /**
     * 逻辑删除
     * @author admin
     * @date 2024-07-29 14:19:15
     * @param baseProject baseProject
     * @param baseProjectIds baseProjectIds
     */
    void deleteBaseProject(BaseProject baseProject,String baseProjectIds);

    /**
    * 物理删除
    * @author admin
    * @date 2024-07-29 14:19:15
    * @param baseProjectIds baseProjectIds
    */
    void physicallyDeleteBaseProject(String baseProjectIds);

    /**
     * 根据projectIds查询
     * @author admin
     * @date 2024-07-29 14:19:15
     * @param baseProjectIds baseProjectIds
     * @return List<BaseProject>
     */
    List<BaseProject> findBaseProjectsByIds(List<String> baseProjectIds);
}
